package cn.three.biz;

import java.util.List;

import cn.three.daoImpl.shopimpl;
import cn.three.eneity.Shop;
import cn.three.factory_dao.ShopDao;

public class ShopdaoBiz {
	ShopDao dao=new shopimpl();
	public int addShop(Shop shop){
		return dao.addShop(shop);
		
	}
	public List<Shop> getAllShops(){
		return dao.getAllShops();
	}
	public Shop getShopById(int ShopId){
		return dao.getShopById(ShopId);
	}
	public int deleteShopById(int ShopId){
		return dao.deleteShopById(ShopId);
	}
	
	public int updateShop(Shop shop){
		return dao.updateShop(shop);
	}
	public int getShopCount(){
		return dao.getShopCount();
	}
	public List<Shop> getShopByPage(int countPage){
		return dao.getShopByPage(countPage);
	}
	public List<Shop> getShopByclassifyId(int classifyId){
		return dao.getShopByclassifyId(classifyId);
	}
	public List<Shop> showLikeShops(Shop shop){
		return dao.showLikeShops(shop);
	}
	public List<Shop> showtwoShops(int a){
		return dao.showtwoShops(a);
	}
}
